home *** CD-ROM | disk | FTP | other *** search
/ Acorn User: China / Acorn User China CD-ROM (UK) (Disc B) / Acorn User China CD-ROM (UK) (Disc B).bin / BARNET / ARMLINUX / MAIL / 9807 / text0265.txt < prev    next >
Encoding:
Text File  |  1998-08-03  |  1.5 KB  |  34 lines

  1. There seems to be a problem with binutils-2.9.1.0.7 and symbol versioning.  
  2. This causes a slew of `BFD assertion failed' messages from the linker.  At a 
  3. first glance I think one of the assertions is spurious but the other seems to 
  4. indicate a real problem.  To work around this, configure glibc with the 
  5. `--disable-versioning' switch.  You may need to apply the appended small 
  6. patch to elf/Makefile as well.
  7.  
  8. --- clean/libc-980516/elf/Makefile      Sat May 16 01:01:33 1998
  9. +++ libc/elf/Makefile   Sat Jul 25 16:18:14 1998
  10. @@ -35,7 +35,9 @@
  11.  # ld.so uses those routines, plus some special stuff for being the program
  12.  # interpreter and operating independent of libc.
  13.  rtld-routines  := rtld $(dl-routines) dl-sysdep dl-minimal
  14. +ifeq ($(versioning),yes)
  15.  ld-map         = $(..)libc.map
  16. +endif
  17.  distribute     = $(rtld-routines:=.c) dynamic-link.h do-rel.h dl-machine.h \
  18.                   dl-hash.h soinit.c sofini.c ldd.sh.in ldd.bash.in eval.c \
  19.                   genrtldtbl.awk atomicity.h dl-procinfo.h ldsodefs.h \
  20.  
  21. Also, there is a potential pitfall with GCC and libgcc.a.  You may need to add 
  22. -DPIC to the CFLAGS used when compiling libgcc.a.  It's important that the
  23. calls to __div0 are done through the PLT, otherwise some PC24 relocs can end 
  24. up leaking into places you don't want them (like the dynamic linker).
  25.  
  26. Russell: is it true that both 2.0 and 2.1 kernels now have the same (and 
  27. correct) ELF loading behaviour?
  28.  
  29. p.
  30.  
  31.  
  32. unsubscribe: body of `unsubscribe linux-arm' to majordomo@vger.rutgers.edu
  33.  
  34.